<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    response.setStatus(HttpServletResponse.SC_OK);
    Throwable ex = null;
    if (exception != null)
        ex = exception;
    if (request.getAttribute("javax.servlet.error.exception") != null)
        ex = (Throwable) request.getAttribute("javax.servlet.error.exception");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>500 - 系统内部错误</title>
</head>
<body>
	<div>
		<h1>系统产生异常.</h1>
	</div>
	<div>
		<br>
		<%=ex.printStackTrace()
		    String msg = ex.getMessage();
		    if (msg == null || msg.equals("")) {
		        msg = "系统产生异常，请联系管理员。";
		    } else {
		        msg = "详细信息:" + msg;
		    }
		    out.println(msg);
		%>
	</div>
	<div>
		<a href="javascript:history.go(-1);">返回</a>
	</div>
</body>
</html>
